package Demo;

import java.util.Scanner;

public class Oh2{
	public static void main(String[]args) {
		Scanner scanner = new Scanner (System.in);
		
		System.out.println("请输入是否结婚（Y/N）：");
		char isMarried = scanner.next().charAt(0);
		
		System.out.println("请输入性别（男/女）：");
		char sex = scanner.next().charAt(0);
		
		System.out.println("请输入年龄：");
		int age = scanner.nextInt();
		
		if(isMarried == 'Y'|| (isMarried =='N'&&sex=='男'&&age >=25) || (isMarried=='N'&&sex=='女'&&age >=22)) {
			System.out.println("提供保险");
		}else {
		System.out.println("不提供保险");
	}
	}
}